package com.catsic.web.controllers;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.catsic.base.controller.BaseController;
import com.catsic.mod.entity.ReadMessage;
import com.catsic.mod.form.ReadMessageForm;
import com.catsic.mod.service.ReadMessageService;

@Controller
@RequestMapping("/readMessage")
public class ReadMessageController extends BaseController{
	
	@Autowired
	private ReadMessageService readMessageService;
	
	@SuppressWarnings("unused")
	@RequestMapping(value = "/insert" , method = RequestMethod.POST)
	@ResponseBody
	public Map<String,Object> readMessage(ReadMessageForm readMessageForm){
		ReadMessage form=readMessageService.add(readMessageForm);
		Map<String,Object> map= new HashMap<String,Object>();
		map.put(RESULT,RESULT_SUCCESS);
		return map;
	}
}
